// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Buefy from 'buefy'
import 'buefy/dist/buefy.css'
import { Alert, Button, Card, Collapse, CollapseItem, Col, Container, DatePicker, Dialog, Dropdown,
  DropdownItem, DropdownMenu, Form, FormItem, Header, Input, InputNumber, Main, Menu, MenuItem, Submenu, MenuItemGroup, Checkbox,
  Tree, Message, Option, Pagination, Radio, RadioGroup, Row, Select, Tabs, Table, TabPane, TableColumn, Tag, Upload } from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import "vue-material-design-icons/styles.css"

import VueQuillEditor from 'vue-quill-editor'

// require styles
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

Vue.use(VueQuillEditor, /* { default global options } */)
Vue.use(Buefy)


Vue.config.productionTip = false

const components = [Alert, Button, Card, Collapse, CollapseItem, Col, Container, DatePicker, Dialog, Dropdown,
  DropdownItem, DropdownMenu, Form, FormItem, Header, Input, InputNumber, Main, Menu, MenuItem, Submenu, MenuItemGroup, Checkbox,
  Tree, Message, Option, Pagination, Radio, RadioGroup, Row, Select, Tabs, Table, TabPane, TableColumn, Tag, Upload]
components.forEach(item => {
  Vue.component(item.name, item)
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
